<?php
/**
 * 提现
 * User: guojing
 * Date: 2020/5/6
 * Time: 18:09
 */

namespace app\admin\model;

use think\Model;

class Withdraw extends Model
{

    // 表名
    protected $name = 'withdraw';

    public static function findInfoByCondition($condition = [])
    {
        return self::where($condition)->find();
    }

    public static function findListByCondition($condition = [])
    {
        return self::where($condition)->select();
    }

    public static function saveData($condition = [], $data = [])
    {
        if ($condition && $data) {
            return self::where($condition)->update($data);
        }
        return false;
    }

}